package com.example.demo;

import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.seg.common.Term;
import com.hankcs.hanlp.tokenizer.NLPTokenizer;

import java.util.List;

/**
 * Created by luke on 18/2/10.
 */
public class NlpDemo {
    public static void main(String arg[]){

        List<Term> termList = NLPTokenizer.segment("以色列王大卫儿子所罗门的箴言, 要使人晓得智慧和训诲，分辨通达的言语，");
        for(Term term:termList){
            System.out.println(term);
        }
    }
}
